package com.ferris.composite;

/**
 * ferris 
 * @author 459821731@qq.com
 * 动物类
 */


public class Animal {
	
	public class Attribute{
		public static final int PEOPLE=0;//人类
		public static final int COW=1;//牛
		public static final int SLEEP=2;//羊
		public static final int PIG=3;//猪
	}

	public Animal(){
		
	}
	
	protected int id; //动物的 特殊id
	protected String name;//动物的名字
	protected int type;//动物的类型

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	//动物的行为方法
	protected void operation(){}
}
